package com.example.jbservice.Controller;

import com.example.jbservice.Dto.OutPatientFeeDto;
import com.example.jbservice.Result.Result;
import com.example.jbservice.Service.OutPatientFeeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/outfee")
public class OutPatientFeeController {
	@Autowired
	private OutPatientFeeService outPatientFeeService;


	@PostMapping("/Save")
	public Result<OutPatientFeeDto> SaveFee(@RequestBody OutPatientFeeDto outPatientFeeDto){
		outPatientFeeService.save(outPatientFeeDto);
		return Result.success(outPatientFeeDto);
	}
}
